#ifndef __CONFIG_H__
#define __CONFIG_H__

/*
    Description
    
    Use STM32G030F6P6 chip
    
    UART2 used for CRSF
        PA2   ------> USART2_TX
        PA3   ------> USART2_RX
*/


/*
    config the mode of board
    Can only define one mode.
*/
//#define MODE_CRSF_TO_SBUS
#define MODE_PPM_TO_CRSF


/*
    config crsf parameters
*/

#ifdef MODE_CRSF_TO_SBUS

#define CONFIG_CRSF_HALFDUAL    0
#define CONFIG_CRSF_TX_INVERT   0
#define CONFIG_CRSF_RX_INVERT   0

#endif

#ifdef MODE_PPM_TO_CRSF

#define CONFIG_CRSF_HALFDUAL    1
#define CONFIG_CRSF_TX_INVERT   1
#define CONFIG_CRSF_RX_INVERT   1

#endif

/*
    config SBUS parameters
*/

#define SBUS_INTERVAL   7

/*
    Watch Dog
*/

#define IWDG_ENABLE 0

/*
    PPM Channel number
*/
#define PPM_CHANNEL_NUM 12




#endif

